package com.hyts.rxjava.bus.event;

import lombok.extern.slf4j.Slf4j;

/**
 * project-name:coffice-toolbox
 * package-name:com.hyts.rxjava.bus.event
 * author:Libo/Alex
 * create-date:2019-06-27 17:41
 * email:liboware@gmail.com
 * description:此类主要用于: 用于默认的事件操作服务-object
 */
@Slf4j
public class DefaultEvent extends AbstractEvent<Object,Object> {


    public DefaultEvent() {
    }

    public DefaultEvent(Long eventToken, String eventName, Object eventData) {
        super(eventToken, eventName, eventData);
    }

    public DefaultEvent(Long eventToken, String eventName) {
        super(eventToken, eventName);
    }

    public DefaultEvent(Long eventToken) {
        super(eventToken);
    }

    public DefaultEvent(String eventName) {
        super(eventName);
    }

    @Override
    public Object execute(Object param) {
        log.info("事件执行记录:参数{}",param);
        setEventData(param);
        log.info("事件执行记录:参数{}",param);
        return null;
    }
}
